package com.adu.demo.service.Impl;

import java.util.List;
import com.adu.demo.domain.SysRole;
import com.adu.demo.mapper.SysRoleMapper;
import com.adu.demo.service.ISysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
                                            
@Service
public class SysRoleService implements ISysRoleService{
    @Autowired
    private SysRoleMapper sysroleMapper;

    @Override
    public List<SysRole> getList(SysRole sysrole){
        return sysroleMapper.getList(sysrole);
    }
    @Override
    public SysRole getById(Long id){
        return sysroleMapper.getById(id);
    }
    @Override
    public int save(SysRole sysrole){
        return sysroleMapper.save(sysrole);
    }
    @Override
    public int deleteById(Long id){
        return sysroleMapper.deleteById(id);
    }
    @Override
    public int deleteByIds(Long[] ids){
        return  sysroleMapper.deleteByIds(ids);
    }
    @Override
    public int update(SysRole sysrole){
        return sysroleMapper.update(sysrole);
    }
}